# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/lwt/Desktop/python-poker/ui/CreateDlg.ui'
#
# Created: Wed Aug 18 21:58:35 2010
#      by: PyQt4 UI code generator 4.7.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_CreateDialog(object):
    def setupUi(self, CreateDialog):
        CreateDialog.setObjectName("CreateDialog")
        CreateDialog.setWindowModality(QtCore.Qt.WindowModal)
        CreateDialog.resize(485, 225)
        self.gridLayout_2 = QtGui.QGridLayout(CreateDialog)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtGui.QLabel(CreateDialog)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.listGame = QtGui.QListWidget(CreateDialog)
        self.listGame.setMaximumSize(QtCore.QSize(119, 16777215))
        self.listGame.setObjectName("listGame")
        self.verticalLayout.addWidget(self.listGame)
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 3, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 1, 2, 1, 1)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtGui.QLabel(CreateDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.lineHost = QtGui.QLineEdit(CreateDialog)
        self.lineHost.setObjectName("lineHost")
        self.gridLayout.addWidget(self.lineHost, 0, 1, 1, 3)
        self.label_3 = QtGui.QLabel(CreateDialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 4, 1, 1)
        self.sbPort = QtGui.QSpinBox(CreateDialog)
        self.sbPort.setMinimum(1025)
        self.sbPort.setMaximum(65535)
        self.sbPort.setProperty("value", 1234)
        self.sbPort.setObjectName("sbPort")
        self.gridLayout.addWidget(self.sbPort, 0, 5, 1, 1)
        self.label_4 = QtGui.QLabel(CreateDialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.cbPlayerCount = QtGui.QComboBox(CreateDialog)
        self.cbPlayerCount.setObjectName("cbPlayerCount")
        self.gridLayout.addWidget(self.cbPlayerCount, 1, 1, 1, 2)
        self.label_5 = QtGui.QLabel(CreateDialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 1, 4, 1, 1)
        self.sbNetPlayerCount = QtGui.QSpinBox(CreateDialog)
        self.sbNetPlayerCount.setObjectName("sbNetPlayerCount")
        self.gridLayout.addWidget(self.sbNetPlayerCount, 1, 5, 1, 1)
        self.label_6 = QtGui.QLabel(CreateDialog)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 2, 0, 2, 1)
        self.cbCardPack = QtGui.QComboBox(CreateDialog)
        self.cbCardPack.setObjectName("cbCardPack")
        self.gridLayout.addWidget(self.cbCardPack, 2, 1, 2, 2)
        self.cbCardBase = QtGui.QComboBox(CreateDialog)
        self.cbCardBase.setObjectName("cbCardBase")
        self.gridLayout.addWidget(self.cbCardBase, 2, 5, 2, 1)
        self.label_7 = QtGui.QLabel(CreateDialog)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 2, 4, 2, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 1, 3, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem2, 2, 3, 2, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 1, 3, 1, 1)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem3, 2, 3, 1, 1)
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName("hboxlayout")
        spacerItem4 = QtGui.QSpacerItem(131, 31, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem4)
        self.okButton = QtGui.QPushButton(CreateDialog)
        self.okButton.setDefault(True)
        self.okButton.setObjectName("okButton")
        self.hboxlayout.addWidget(self.okButton)
        self.cancelButton = QtGui.QPushButton(CreateDialog)
        self.cancelButton.setObjectName("cancelButton")
        self.hboxlayout.addWidget(self.cancelButton)
        self.gridLayout_2.addLayout(self.hboxlayout, 3, 0, 1, 4)
        self.label.setBuddy(self.listGame)
        self.label_2.setBuddy(self.lineHost)
        self.label_3.setBuddy(self.sbPort)
        self.label_4.setBuddy(self.cbPlayerCount)
        self.label_5.setBuddy(self.sbNetPlayerCount)
        self.label_6.setBuddy(self.cbCardPack)
        self.label_7.setBuddy(self.cbCardBase)

        self.retranslateUi(CreateDialog)
        QtCore.QObject.connect(self.okButton, QtCore.SIGNAL("clicked()"), CreateDialog.accept)
        QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL("clicked()"), CreateDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(CreateDialog)

    def retranslateUi(self, CreateDialog):
        CreateDialog.setWindowTitle(QtGui.QApplication.translate("CreateDialog", "创建游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("CreateDialog", "选择游戏:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("CreateDialog", "服务器地址:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("CreateDialog", "端口:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("CreateDialog", "总玩家数:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("CreateDialog", "网络玩家数:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("CreateDialog", "牌数（副）:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setToolTip(QtGui.QApplication.translate("CreateDialog", "最小牌面值", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setWhatsThis(QtGui.QApplication.translate("CreateDialog", "最小牌面值", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("CreateDialog", "牌面基数:", None, QtGui.QApplication.UnicodeUTF8))
        self.okButton.setText(QtGui.QApplication.translate("CreateDialog", "确定(&O)", None, QtGui.QApplication.UnicodeUTF8))
        self.cancelButton.setText(QtGui.QApplication.translate("CreateDialog", "取消(&C)", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    CreateDialog = QtGui.QDialog()
    ui = Ui_CreateDialog()
    ui.setupUi(CreateDialog)
    CreateDialog.show()
    sys.exit(app.exec_())

